<script setup>
import { ref } from 'vue'

const showVideo = ref(false)
</script>

<template>
  <section class="hero">
    <div class="container">
      <div class="hero-content">
        <div class="hero-left">
          <h1 class="hero-title">
            开启数字资产<span class="highlight">新时代</span>
          </h1>
          
          <p class="hero-subtitle">
            极速成交保障最佳市场价格
          </p>
          
          <p class="hero-description">
            OY交易所下载提供秘钥,1级保级AAPI，提供1等级的资讯的Trick级行情与预测订单
            器级别，进口更新永久性以及对X对对的世界可更来。
          </p>
          
          <div class="hero-actions">
            <button class="btn-primary">
              <span class="btn-icon">▼</span>
              立即下载
            </button>
            <button class="btn-secondary" @click="showVideo = true">
              <span class="btn-icon">▶</span>
              了解更多
            </button>
          </div>
        </div>
        
        <div class="hero-right">
          <slot name="register-card" />
        </div>
      </div>
    </div>
  </section>
</template>

<style scoped>
.hero {
  padding: 80px 0 60px;
  min-height: 600px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left {
  max-width: 560px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1a1d29;
}

.highlight {
  color: #00d4aa;
  display: block;
}

.hero-subtitle {
  font-size: 20px;
  color: #666;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-description {
  font-size: 15px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
}

.btn-icon {
  font-size: 12px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-left {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
</style>
